3.1.7 \(\int \frac {\cot ^3(x)}{a+a \csc (x)} \, dx\) [7]

Optimal. Leaf size=16 \[ -\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a} \]

[Out]

-csc(x)/a-ln(sin(x))/a

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3964, 45} \begin {gather*} -\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cot[x]^3/(a + a*Csc[x]),x]

[Out]

-(Csc[x]/a) - Log[Sin[x]]/a

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 3964

Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.), x_Symbol] :> Dist[1/(a^(m - n
- 1)*b^n*d), Subst[Int[(a - b*x)^((m - 1)/2)*((a + b*x)^((m - 1)/2 + n)/x^(m + n)), x], x, Sin[c + d*x]], x] /
; FreeQ[{a, b, c, d}, x] && IntegerQ[(m - 1)/2] && EqQ[a^2 - b^2, 0] && IntegerQ[n]

Rubi steps

\begin {align*} \int \frac {\cot ^3(x)}{a+a \csc (x)} \, dx &=\frac {\text {Subst}\left (\int \frac {a-a x}{x^2} \, dx,x,\sin (x)\right )}{a^2}\\ &=\frac {\text {Subst}\left (\int \left (\frac {a}{x^2}-\frac {a}{x}\right ) \, dx,x,\sin (x)\right )}{a^2}\\ &=-\frac {\csc (x)}{a}-\frac {\log (\sin (x))}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 11, normalized size = 0.69 \begin {gather*} -\frac {\csc (x)+\log (\sin (x))}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cot[x]^3/(a + a*Csc[x]),x]

[Out]

-((Csc[x] + Log[Sin[x]])/a)

________________________________________________________________________________________

Maple [A]
time = 0.07, size = 13, normalized size = 0.81

method result size
derivativedivides \(\frac {-\csc \left (x \right )+\ln \left (\csc \left (x \right )\right )}{a}\) \(13\)
default \(\frac {-\csc \left (x \right )+\ln \left (\csc \left (x \right )\right )}{a}\) \(13\)
risch \(\frac {i x}{a}-\frac {2 i {\mathrm e}^{i x}}{a \left ({\mathrm e}^{2 i x}-1\right )}-\frac {\ln \left ({\mathrm e}^{2 i x}-1\right )}{a}\) \(42\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3/(a+a*csc(x)),x,method=_RETURNVERBOSE)

[Out]

1/a*(-csc(x)+ln(csc(x)))

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 18, normalized size = 1.12 \begin {gather*} -\frac {\log \left (\sin \left (x\right )\right )}{a} - \frac {1}{a \sin \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="maxima")

[Out]

-log(sin(x))/a - 1/(a*sin(x))

________________________________________________________________________________________

Fricas [A]
time = 3.07, size = 19, normalized size = 1.19 \begin {gather*} -\frac {\log \left (\frac {1}{2} \, \sin \left (x\right )\right ) \sin \left (x\right ) + 1}{a \sin \left (x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="fricas")

[Out]

-(log(1/2*sin(x))*sin(x) + 1)/(a*sin(x))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\cot ^{3}{\left (x \right )}}{\csc {\left (x \right )} + 1}\, dx}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)**3/(a+a*csc(x)),x)

[Out]

Integral(cot(x)**3/(csc(x) + 1), x)/a

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 14, normalized size = 0.88 \begin {gather*} -\frac {\frac {1}{\sin \left (x\right )} + \log \left ({\left | \sin \left (x\right ) \right |}\right )}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(x)^3/(a+a*csc(x)),x, algorithm="giac")

[Out]

-(1/sin(x) + log(abs(sin(x))))/a

________________________________________________________________________________________

Mupad [B]
time = 0.30, size = 36, normalized size = 2.25 \begin {gather*} -\frac {\frac {\mathrm {tan}\left (\frac {x}{2}\right )}{2}-\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )+\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )+\frac {1}{2\,\mathrm {tan}\left (\frac {x}{2}\right )}}{a} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(x)^3/(a + a/sin(x)),x)

[Out]

-(tan(x/2)/2 - log(tan(x/2)^2 + 1) + log(tan(x/2)) + 1/(2*tan(x/2)))/a

________________________________________________________________________________________